package org.ifilm.dao;

import java.util.List;


import org.ifilm.model.UserRating;
import org.ifilm.model.User;

/**
 * 
 * @author Mustafa Genç
 *
 */
public interface UserDao {
	public User createUser(User user);
	
	public User getUser(String email, String password);
	
	public List<User> getAllUsers();
	
	public User getUserById(Long id);
	
	public void editUser(User user);
	
	public UserRating createUserRating(UserRating userRating);
	
	/**
	 * 
	 * @param userId
	 * 		rated user
	 * @param rater
	 * 		rater user
	 * @return
	 * 		given rate object
	 */
	public UserRating getUserRate(Long userId, User rater);
}